import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import getters from './getters'
import mutations from './mutations'
import actions from './actions'
import user from './module/user'
import router from './module/router'
// import saveInLocal from './plugin/saveinLocal'

Vue.use(Vuex)

export default new Vuex.Store({
  // 如果当前为开发模式 则开启严格模式
  // strict: process.env.NODE_ENV === 'development',
  state,
  getters,
  mutations,
  actions,
  modules: {
    user,
    router
  }
  // plugins: [ saveInLocal ]
})
